package com.ai.zuochengyun.phase01.class07;


/**
 * 边
 */
public class Edge {

    /**
     * 从哪个节点来
     */
    public Node from;

    /**
     * 下一个要去的节点
     */
    public Node to;

    /**
     * 和节点间的距离
     */
    public int weight;

    public Edge(Node from, Node to, int weight) {
        this.from = from;
        this.to = to;
        this.weight = weight;
    }
}
